package com.thomsonreuters.ce.edps.model.impl;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Set;
import org.apache.commons.lang.builder.ToStringBuilder;

import com.thomsonreuters.ce.edps.model.IPhysicalAssetType;


/** @author Hibernate CodeGenerator */
public class PhysicalAssetType implements Serializable, IPhysicalAssetType {

    /** identifier field */
    private BigDecimal id;

    /** persistent field */
    private String name;

    /** nullable persistent field */
    private String ricIndicator;

    /** nullable persistent field */
    private String rcsCode;

    /** nullable persistent field */
    private String description;

    /** nullable persistent field */
    private BigDecimal permId;

    /** persistent field */
    private Set physicalAssets;

    /** full constructor */
    public PhysicalAssetType(String name, String ricIndicator, String rcsCode, String description, BigDecimal permId, Set physicalAssets) {
        this.name = name;
        this.ricIndicator = ricIndicator;
        this.rcsCode = rcsCode;
        this.description = description;
        this.permId = permId;
        this.physicalAssets = physicalAssets;
    }

    /** default constructor */
    public PhysicalAssetType() {
    }

    /** minimal constructor */
    public PhysicalAssetType(String name, Set physicalAssets) {
        this.name = name;
        this.physicalAssets = physicalAssets;
    }

    /* (non-Javadoc)
	 * @see com.thomsonreuters.ce.edps.model.impl.IPhysicalAssetType#getId()
	 */
    @Override
	public BigDecimal getId() {
        return this.id;
    }

    /* (non-Javadoc)
	 * @see com.thomsonreuters.ce.edps.model.impl.IPhysicalAssetType#setId(java.math.BigDecimal)
	 */
    @Override
	public void setId(BigDecimal id) {
        this.id = id;
    }

    /* (non-Javadoc)
	 * @see com.thomsonreuters.ce.edps.model.impl.IPhysicalAssetType#getName()
	 */
    @Override
	public String getName() {
        return this.name;
    }

    /* (non-Javadoc)
	 * @see com.thomsonreuters.ce.edps.model.impl.IPhysicalAssetType#setName(java.lang.String)
	 */
    @Override
	public void setName(String name) {
        this.name = name;
    }

    /* (non-Javadoc)
	 * @see com.thomsonreuters.ce.edps.model.impl.IPhysicalAssetType#getRicIndicator()
	 */
    @Override
	public String getRicIndicator() {
        return this.ricIndicator;
    }

    /* (non-Javadoc)
	 * @see com.thomsonreuters.ce.edps.model.impl.IPhysicalAssetType#setRicIndicator(java.lang.String)
	 */
    @Override
	public void setRicIndicator(String ricIndicator) {
        this.ricIndicator = ricIndicator;
    }

    /* (non-Javadoc)
	 * @see com.thomsonreuters.ce.edps.model.impl.IPhysicalAssetType#getRcsCode()
	 */
    @Override
	public String getRcsCode() {
        return this.rcsCode;
    }

    /* (non-Javadoc)
	 * @see com.thomsonreuters.ce.edps.model.impl.IPhysicalAssetType#setRcsCode(java.lang.String)
	 */
    @Override
	public void setRcsCode(String rcsCode) {
        this.rcsCode = rcsCode;
    }

    /* (non-Javadoc)
	 * @see com.thomsonreuters.ce.edps.model.impl.IPhysicalAssetType#getDescription()
	 */
    @Override
	public String getDescription() {
        return this.description;
    }

    /* (non-Javadoc)
	 * @see com.thomsonreuters.ce.edps.model.impl.IPhysicalAssetType#setDescription(java.lang.String)
	 */
    @Override
	public void setDescription(String description) {
        this.description = description;
    }

    /* (non-Javadoc)
	 * @see com.thomsonreuters.ce.edps.model.impl.IPhysicalAssetType#getPermId()
	 */
    @Override
	public BigDecimal getPermId() {
        return this.permId;
    }

    /* (non-Javadoc)
	 * @see com.thomsonreuters.ce.edps.model.impl.IPhysicalAssetType#setPermId(java.math.BigDecimal)
	 */
    @Override
	public void setPermId(BigDecimal permId) {
        this.permId = permId;
    }

    /* (non-Javadoc)
	 * @see com.thomsonreuters.ce.edps.model.impl.IPhysicalAssetType#getPhysicalAssets()
	 */
    @Override
	public Set getPhysicalAssets() {
        return this.physicalAssets;
    }

    /* (non-Javadoc)
	 * @see com.thomsonreuters.ce.edps.model.impl.IPhysicalAssetType#setPhysicalAssets(java.util.Set)
	 */
    @Override
	public void setPhysicalAssets(Set physicalAssets) {
        this.physicalAssets = physicalAssets;
    }

    /* (non-Javadoc)
	 * @see com.thomsonreuters.ce.edps.model.impl.IPhysicalAssetType#toString()
	 */
    @Override
	public String toString() {
        return new ToStringBuilder(this)
            .append("id", getId())
            .toString();
    }

}
